# mall-monitor Dockerfile
FROM openjdk:8-jre-alpine

# 设置时区
RUN apk add --no-cache tzdata \
    && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone

# 创建工作目录
WORKDIR /app

# 复制jar包
COPY target/mall-monitor-1.0.0.jar app.jar

# 暴露端口
EXPOSE 8003

# 启动应用
ENTRYPOINT ["java", "-jar", "app.jar"]